package indi.jp.project.process.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 任务流程参数
 *
 * @author jiangping
 * @date 2022/5/5
 */
public class FlowTaskParam {

    /**
     * 任务表名（包含任务状态的表）
     */
    private String tableName;

    /**
     * 流程类型编码
     */
    @NotBlank(message = "任务类型编码不能为空")
    private String flowTypeCode;

    /**
     * 任务ID
     */
    @NotBlank(message = "任务ID不能为空")
    private String taskId;

    /**
     * 当前状态
     */
    @NotNull(message = "当前状态参数不能为空")
    private Integer state;

    /**
     * 是否允许撤回
     */
    private Integer allowRevoke;

    /**
     * 被驳回时状态
     */
    private Integer rejectedState;

    /**
     * 当前状态名称
     */
    private String stateName;

    /**
     * 处理人
     */
    private String handler;

    /**
     * 处理人名称
     */
    private String handlerName;

    /**
     * 操作（submit:提交，agree:同意，reject:驳回，cancel:作废）
     */
    private String operation;

    /**
     * 处理意见
     */
    private String opinion;

    /**
     * 当前登陆人
     */
    private String createBy;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getFlowTypeCode() {
        return flowTypeCode;
    }

    public void setFlowTypeCode(String flowTypeCode) {
        this.flowTypeCode = flowTypeCode;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getAllowRevoke() {
        return allowRevoke;
    }

    public void setAllowRevoke(Integer allowRevoke) {
        this.allowRevoke = allowRevoke;
    }

    public Integer getRejectedState() {
        return rejectedState;
    }

    public void setRejectedState(Integer rejectedState) {
        this.rejectedState = rejectedState;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getHandler() {
        return handler;
    }

    public void setHandler(String handler) {
        this.handler = handler;
    }

    public String getHandlerName() {
        return handlerName;
    }

    public void setHandlerName(String handlerName) {
        this.handlerName = handlerName;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
}
